import { PageContent } from "@/ui/layout/page-content";
import { PageWidthWrapper } from "@/ui/layout/page-width-wrapper";
import { FraudGroupTable } from "./fraud-group-table";
import { ProgramFraudActionsMenu } from "./program-fraud-actions-menu";
import { ProgramFraudSettingsButton } from "./program-fraud-settings-button";

export default function ProgramFraudRiskPage() {
  return (
    <PageContent
      title="Fraud Detection"
      titleInfo={{
        title:
          "Safeguard your partner program by automatically flagging, reviewing, and resolving suspicious activity with Fraud Detection.",
        href: "https://dub.co/help/article/fraud-detection",
      }}
      controls={
        <>
          <ProgramFraudSettingsButton />
          <ProgramFraudActionsMenu />
        </>
      }
    >
      <PageWidthWrapper>
        <FraudGroupTable />
      </PageWidthWrapper>
    </PageContent>
  );
}
